/**
 * gvSIG. Desktop Geographic Information System.
 *
 * Copyright (C) 2007-2012 gvSIG Association.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA  02110-1301, USA.
 *
 * For any additional information, do not hesitate to contact us
 * at info AT gvsig.com, or visit our website www.gvsig.com.
 */
package org.gvsig.titleblock;

import java.awt.Graphics;
import java.io.File;
import java.util.HashMap;

import javax.swing.JPanel;


/**
 * Represents a TitleBlock element.
 * 
 * @author gvSIG team
 * @version $Id$
 */
public interface ITBToFFrame {

    /**
     * Returns the {@link ITBManager}
     * 
     * @return {@link ITBManager}
     * @see {@link ITBManager}
     */
    public ITBManager getManager();
    
    /**
     * Transforms from gvb format to frame
     * @param file
     * @param selecteds
     */
    public void gvbToFrames(File file, HashMap<String, String> selecteds);
 
    /**
     * Checks if a file has some tags filled
     * @param file
     * @return
     */
    public boolean hasTags(File file);
    
    /**
     * Checks if a file has a particula tag filled
     * @param tagName
     * @return
     */
    public boolean hasThisTag(String tagName);
    
    /**
     * Returns an array with all the items
     * @return
     */
    public Object[] getItems();

    /**
     * Draws a panel with a miniature of the TitleBlock
     * @param jpanel
     * @param g
     */
	public void drawInPanel(JPanel jpanel, Graphics g);
 
}
